package cn.tedu.management.community.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("community")
public class Community {
    @ApiModelProperty(value = "社区id",required = true)
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "社区名称",required = true)
    private String name;
    @ApiModelProperty(value = "社区昵称",required = true)
    private String nickname;
    @ApiModelProperty(value = "社区编号",required = true)
    private String code;
    @ApiModelProperty(value = "社区简介",required = true)
    private String remark;
    @ApiModelProperty(value = "社区类型",required = true)
    private String type;
    @ApiModelProperty(value = "人口规模",required = true)
    private Long scale;
    @ApiModelProperty(value = "社区面积",required = true)
    private Long area;
    @ApiModelProperty(value = "社区地址",required = true)
    private String address;
    @ApiModelProperty(value = "创建时间",required = true)
    private Date createTime;
    @ApiModelProperty(value = "修改时间",required = true)
    private Date updateTime;
    @ApiModelProperty(value = "消防人员id",required = true)
    private Long fireUserId;
    @ApiModelProperty(value = "安全负责人id",required = true)
    private Long safeUserId;
    @ApiModelProperty(value = "物业人员id",required = true)
    private Long propertyUserId;
}
